import { defineStore } from 'pinia'

export const useStoreCounter = defineStore('counter', {
  state: () => {
    return { count: 0, count_waitings: 0, count_rasp: 0 }
  },
  actions: {
    incrementWaitingsCount() {
      this.count_waitings++
    },
    decrementCount() {
      this.count--
    },
    counterMoveNaryadToOther() {
      this.count_waitings++
      this.count--
    },
    resetCounter() {
      this.count = 0
      this.count_waitings = 0
      this.count_rasp = 0
    },
  },
})